{%extends "base.html"%}
{%block title%}吾有言{%endblock%}
{%block content%}
<div class='container'>
{%if message%}
	<div class='alert alert-warning'>{{message}}</div>
{%endif%}
<form name='my form'action='.'method='POST'>
{%csrf_token%}
	现在的心情:<br />
	{%for m in moods%}
	<input type='radio' name='mood' value='{{m.status}}'>{{m.status}}
	{%endfor%}
	<br />
	心情留言板:<br />
	<textarea name='user_post'rows=3 cols=70></textarea><br />
	<label for ='user_id'>你的昵称:</label>
	<input id ='user_id'type='text'name='user_id'>
	<label for='user_pass'>张贴/擦除:</label>
	<input id='user_pass' type='password'name='user_pass'><br />
	<input type = 'submit' value='张贴'>
	<input type='reset' value='擦除'>
</form>
</div>
{%endblock%}